package com.majun.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.StringJoiner;

/**
 * user
 * @author 
 */
//@Table(name="user")
public class User implements Serializable {
    //@Id
    private Long id;

    private String name;

    private Date createdDate;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", User.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("name='" + name + "'")
                .add("createdDate=" + createdDate)
                .toString();
    }
}